'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: 3_study_hugging_face_embeddings.py
* @Time: 2025/10/27
* @All Rights Reserve By Brtc
'''
from langchain_huggingface import HuggingFaceEmbeddings

embeddings = HuggingFaceEmbeddings(
    model_name = "sentence-transformers/all-MiniLM-L6-v2",
    cache_folder = "./hugging_face_cache",
)

query_vector = embeddings.embed_query("你好我叫 博小睿")
print(query_vector)
print(len(query_vector))